﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kaixin.Components.Tycoon.DTO
{
    class Goods
    {
        public string ID { get; set; }
        public string Name { get; set; }
        public long MinPrice { get; set; }
        public long MaxPrice { get; set; }
        public long LastPrice { get; set; }
        public long CurrentPrice { get; set; }
        public long AveragePrice { get; set; }
        public int Count { get; set; }
        public GoodsClass Class { get; set; }
        public double Prec
        {
            get
            {
                double d = (double)(MaxPrice - CurrentPrice) / MaxPrice * 100;
                return double.Parse(d.ToString("f2"));
            }
        }
    }
}
